<?php


namespace app\admin\controller;

use think\facade\Request;
use think\facade\View;

class Common
{

    function error()//显示错误信息
    {
        $alert = Request::param('alert');
        $url = Request::param('url');
        View::assign([
            'alert' => $alert,
            'url' => $url
        ]);
        return View::fetch('common/error');
    }

    function success()//显示成功信息
    {
        $alert = Request::param('alert');
        $url = Request::param('url');
        View::assign([
            'alert' => $alert,
            'url' => $url
        ]);
        return View::fetch('common/success');
    }

    function confirm()//确认信息
    {
        $alert = Request::param('alert');
        $js_code = Request::param('js_code');
        View::assign([
            'alert' => $alert,
            'js_code' => $js_code
        ]);
        return View::fetch('common/confirm');
    }

}
